PreviousNextTracker indexSee it online !

(286/308) 1876 - [Beauty] Blank lines after class body #java

Looks like it doesn't work. As far as I understand it should add some blank lines before last close curly bracket **}**. But now it always remove all blank lines even added manually.

So end of class file looks like:

return something;
}
}

**jEdit:** 5.3.0
**Beauty:** 1.0
**java:** 1.8.0_121

Step to reproduce:

1.Open any java source file.
2. Add some blank lines before last curly bracket.
3.Set 2 or more blank lines after body class:
1. **Plugin Options** -> **Beauty** -> **Java Beautifier** -> tab **Blank Lines**
2. Set **2** to **Blank Lines After Class Body** field.
4. Run the beautifier.
5. Check result.

Submitted ur6lad - 2017-02-27 11:45:37.768000 Assigned daleanson
Priority 5 Labels
Status open Group
Resolution None

Comments

2017-02-27 11:58:50.762000
ur6lad

I've tried change **Blank Lines After Methods** too. But result the same: zero lines between last method and last curly bracket.

2017-04-03 16:08:01.312000
daleanson

- **assigned_to**: Dale Anson
- **Group**: -->

2017-04-03 16:08:01.716000
daleanson

Yes, there is a bug here, but also a comment -- the Blank Lines After Class Body should put blank lines AFTER the last curly bracket, not before. This setting is meant to put space between an inner class and whatever follows it. I suppose it doesn't make much sense for an outer class, and the setting should probably be labeled something like Blank Lines After Inner Class Body.